package  com.fas.config;

import com.fas.hehe.config.model.Dictionary;
import com.fas.hehe.config.model.DictionaryData;
import com.fas.hehe.system.model.Attach;
import com.fas.hehe.system.model.LoginLog;
import com.fas.hehe.system.model.OperateLog;
import com.fas.hehe.system.model.OperateLogDetail;
import com.fas.hehe.system.model.Organization;
import com.fas.hehe.system.model.Resource;
import com.fas.hehe.system.model.Role;
import com.fas.hehe.system.model.RoleOfResource;
import com.fas.hehe.system.model.User;
import com.fas.hehe.system.model.UserDetail;
import com.fas.hehe.system.model.UserOfRole;
import com.jfinal.plugin.activerecord.ActiveRecordPlugin;

/**
 * Generated by JFinal, do not modify this file.
 * <pre>
 * Example:
 * public void configPlugin(Plugins me) {
 *     ActiveRecordPlugin arp = new ActiveRecordPlugin(...);
 *     _MappingKit.mapping(arp);
 *     me.add(arp);
 * }
 * </pre>
 */
public class _MappingKit {

	public static void mapping(ActiveRecordPlugin arp) {
		arp.addMapping("config_dictionary", "id", Dictionary.class);
		arp.addMapping("config_dictionary_data", "id", DictionaryData.class);
		arp.addMapping("sys_attach", "att_id", Attach.class);
		arp.addMapping("sys_login_log", "log_id", LoginLog.class);
		arp.addMapping("sys_operate_log", "log_id", OperateLog.class);
		arp.addMapping("sys_operate_log_detail", "id", OperateLogDetail.class);
		arp.addMapping("sys_organization", "id", Organization.class);
		arp.addMapping("sys_resource", "id", Resource.class);
		arp.addMapping("sys_role", "id", Role.class);
		// Composite Primary Key order: resource_id,role_id
		arp.addMapping("sys_role_of_resource", "resource_id,role_id", RoleOfResource.class);
		// Composite Primary Key order: resource_id,role_id
		arp.addMapping("sys_user", "id", User.class);
		arp.addMapping("sys_user_detail", "user_id", UserDetail.class);
		// Composite Primary Key order: role_id,user_id
		arp.addMapping("sys_user_of_role", "role_id,user_id", UserOfRole.class);
	}
}

